OBJECT_COMMON = ./src/*.c
LIBRARY_COMMON = ./bin/*.o
OUTPUT_COMMON_TRANSPORT = ./../transport/bin/

SYSLOG = ./../
COMMON = ./common/
TRANSPORT = ./../transport/


OBJECT_TRANSPORT = ./src/*.c
LIBRARY_TRANSPORT = ./bin/*.o
OUTPUT_TRANSPORT = ./bin/

FLAG_BUILD = -D_REENTRANT -lpthread

#transport: obj_common obj_transport
transport: obj_transport
	cc -o transport_layer $(LIBRARY_TRANSPORT) $(FLAG_BUILD)

#obj_common:
#	cd $(SYSLOG)
#	make -C $(COMMON)
	
obj_transport:
	cd $(TRANSPORT)
	cc -c $(OBJECT_TRANSPORT) $(FLAG_BUILD)
	mv -f *.o $(OUTPUT_TRANSPORT)
	
clean:
	rm -f transport_layer
	rm -f *.o
	rm -f ./bin/*.o
	rm -f ./log/*.log
